package com.peppa.petshop.mapper;

import com.peppa.petshop.entity.Indent;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.peppa.petshop.vo.DataVO;
import com.peppa.petshop.vo.IndentVO;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 张三
 * @since 2021-06-02
 */
@Mapper
public interface IndentMapper extends BaseMapper<Indent> {
    @Insert({ "insert into indent(customer,address,total_price,indent_status,create_time,deleted,update_time)"
            + "values(#{customer},#{address},#{totalPrice},#{indentStatus},#{createTime},#{deleted},#{updateTime})" })
    @Options(useGeneratedKeys=true,keyProperty="indentId")
    void insertReturnId(Indent indent);

}
